package com.hongning.railway.entity.reqbean;

import com.hongning.railway.util.TimeUtils;

import java.io.Serializable;

public class RosterBean implements Serializable {

    /**
     * staffid : admin
     * staffname : admin
     * sex : 4050000
     * birthday : 1565913600000
     * joinpartydate : 1566432000000
     * nativeplace : 陕西
     * joinworking : 959854754000
     * education : 420518
     * university : 北大
     * dlevelid : aaaa
     * postid : 001
     * joindate : 1565568000000
     * skills : 教师
     * occupation : aaa
     * file : 001
     * primitivedegree : 学士
     * leader : 0
     */

    private String staffid;
    private String staffname;
    private String sex;
    private long birthday;
    private long joinpartydate;
    private String nativeplace;
    private long joinworking;
    private String education;
    private String university;
    private String dlevelid;
    private String postid;
    private long joindate;
    private String skills;
    private String occupation;
    private String file;
    private String primitivedegree;
    private String leader;
    private String index;
    private String temShowInfo;
   private String  dutyid;//职务

    public String getDutyid() {
        return dutyid;
    }

    public void setDutyid(String dutyid) {
        this.dutyid = dutyid;
    }

    public String getIndex() {
        return index;
    }

    public void setIndex(String index) {
        this.index = index;
    }

    public String getTemShowInfo() {
        return (postid!=null?postid:"")+ ("4050000".equals(sex)?"  男":"  女")+"  "+(nativeplace!=null?nativeplace:"");
    }

    public void setTemShowInfo(String temShowInfo) {
        this.temShowInfo = temShowInfo;
    }

    public String getStaffid() {
        return staffid;
    }

    public void setStaffid(String staffid) {
        this.staffid = staffid;
    }

    public String getStaffname() {
        return staffname;
    }

    public void setStaffname(String staffname) {
        this.staffname = staffname;
    }

    public String getSex() {
        return "4050000".equals(sex)?"  男":"  女";
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getBirthday() {
        return TimeUtils.getFormatTime(birthday);
    }

    public void setBirthday(long birthday) {
        this.birthday = birthday;
    }

    public String getJoinpartydate() {

        return TimeUtils.getFormatTime(joinpartydate);
    }

    public void setJoinpartydate(long joinpartydate) {
        this.joinpartydate = joinpartydate;
    }

    public String getNativeplace() {
        return nativeplace;
    }

    public void setNativeplace(String nativeplace) {
        this.nativeplace = nativeplace;
    }

    public String getJoinworking() {
        return TimeUtils.getFormatTime(joinworking);
    }

    public void setJoinworking(long joinworking) {
        this.joinworking = joinworking;
    }

    public String getEducation() {
//        420518：博士 420519:硕士 420520：大学本科 420521：大学专科 420522：高中 420523：中专
        if ("420518".equals(education))
        {
            return "博士";
        }else if ("420519".equals(education)){
            return "硕士";
        }else if ("420520".equals(education)){
            return "大学本科";
        }else if ("420521".equals(education)){
            return "大学专科";
        }else if ("420522".equals(education)){
            return "高中";
        }else if ("420523".equals(education)){
            return "中专";
        }else {
            return "位置学历";
        }

    }

    public void setEducation(String education) {
        this.education = education;
    }

    public String getUniversity() {
        return university;
    }

    public void setUniversity(String university) {
        this.university = university;
    }

    public String getDlevelid() {
        return dlevelid;
    }

    public void setDlevelid(String dlevelid) {
        this.dlevelid = dlevelid;
    }

    public String getPostid() {
        return postid;
    }

    public void setPostid(String postid) {
        this.postid = postid;
    }

    public String getJoindate() {

        return TimeUtils.getFormatTime(joindate);
    }

    public void setJoindate(long joindate) {
        this.joindate = joindate;
    }

    public String getSkills() {
        return skills;
    }

    public void setSkills(String skills) {
        this.skills = skills;
    }

    public String getOccupation() {
        return occupation;
    }

    public void setOccupation(String occupation) {
        this.occupation = occupation;
    }

    public String getFile() {
        return file;
    }

    public void setFile(String file) {
        this.file = file;
    }

    public String getPrimitivedegree() {
        return primitivedegree;
    }

    public void setPrimitivedegree(String primitivedegree) {
        this.primitivedegree = primitivedegree;
    }

    public String getLeader() {
        return leader;
    }

    public void setLeader(String leader) {
        this.leader = leader;
    }
}
